package com.ant.storage.dto;

import com.ant.storage.common.PageRequest;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @author hzd
 * @version 1.0
 * @date 2022/3/26 11:50
 */
@Data
public class SupplierInformationDto extends PageRequest {

    private Integer Id;

    @NotNull(message = "城市id")
    @ApiModelProperty(value = "城市id",required = true)
    private List<String> cityId;

    @NotEmpty(message = "供应商名称不能为空")
    @ApiModelProperty(value = "供应商名称")
    @TableField("supplier_name")
    private String supplierName;

    @NotEmpty(message = "联系人不能为空")
    @ApiModelProperty(value = "联系人")
    @TableField("supplier_linkman")
    private String supplierLinkman;

    @NotEmpty(message = "联系人电话不能为空")
    @Length(max = 11,message="请输入11电话号码")
    @ApiModelProperty(value = "联系人电话")
    @TableField("supplier_tel")
    private String supplierTel;

    @NotEmpty(message = "开户行不能为空")
    @ApiModelProperty  (value = "开户行")
    @TableField("supplier_bank")
    private String supplierBank;

    @NotEmpty(message = "开户人不能为空")
    @ApiModelProperty (value = "开户人")
    @TableField("supplier_account")
    private String supplierAccount;

    @NotEmpty(message = "银行账号不能为空")
    @ApiModelProperty (value = "银行账号")
    @TableField("supplier_numbers")
    private String supplierNumbers;

    @ApiModelProperty (value = "已收金额")
    @TableField("supplier_price")
    private String supplierPrice;

    @ApiModelProperty(value = "供应商类型")
    private String supplierType;

    @ApiModelProperty(value = "说明")
    private String supplierExplan;

    @ApiModelProperty(value = "是否锁定")
    private String isShow;

    @ApiModelProperty  (value = "创建人")
    @TableField("creator_by")
    private String creatorBy;

    @ApiModelProperty  (value = "创建时间")
    @TableField("creation_time")
    private Date creationTime;
}
